﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Acms.Bll;

public partial class Topics_TopicGroupFiles : BaseTopicPage
{
    public override Role.Roles[] AllowedRoles
    {
        get { return new Role.Roles[] { Role.Roles.Developer, Role.Roles.ContentEditor, Role.Roles.ContentViewer, Role.Roles.ContentPublisher }; }
    }

    public Role.Roles[] EditRoles
    {
        get { return new Role.Roles[] { Role.Roles.Developer, Role.Roles.ContentViewer, Role.Roles.ContentPublisher }; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (CurrentGroup != null)
            {
                lblTitle.Text = CurrentGroup.Name;
                lblNotes.Text = CurrentGroup.Notes;
            }
        }
    }

    protected void dsFiles_SelectData(object sender, Acms.DataControls.SelectEventArgs<TopicFile> e)
    {
        e.SetData(TopicFile.GetAllByTopicGroupId(TopicGroupId));
    }
}
